package com.xj.common.bussiness.news.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 栏目管理
 * </p>
 *
 * @author xj
 * @since 2017-11-30
 */
public class TbNews extends Model<TbNews> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 归类ID
     */
	private Integer typeId;
	private Integer navId;
    /**
     * 标题
     */
	private String title;
    /**
     * 关键词
     */
	private String keyWords;
    /**
     * 封面图
     */
	private String coverImg;
	
	
	private String otherPhoto;
	
	private String otherMovie;
	
	
    /**
     * 是否显示  1是  2否
     */
	private String isShow;
    /**
     * 排序，值越大越前面
     */
	private Integer sort;
    /**
     * 介绍
     */
	private String content;
	private Date createTime;
	private String createUser;
	private Date updateTime;
	private String updateUser;
    /**
     * 访问次数
     */
	private Integer readNumber;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getTypeId() {
		return typeId;
	}

	public void setTypeId(Integer typeId) {
		this.typeId = typeId;
	}

	public Integer getNavId() {
		return navId;
	}

	public void setNavId(Integer navId) {
		this.navId = navId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getKeyWords() {
		return keyWords;
	}

	public void setKeyWords(String keyWords) {
		this.keyWords = keyWords;
	}

	public String getCoverImg() {
		return coverImg;
	}

	public void setCoverImg(String coverImg) {
		this.coverImg = coverImg;
	}	

	public String getOtherPhoto() {
		return otherPhoto;
	}

	public void setOtherPhoto(String otherPhoto) {
		this.otherPhoto = otherPhoto;
	}

	public String getOtherMovie() {
		return otherMovie;
	}

	public void setOtherMovie(String otherMovie) {
		this.otherMovie = otherMovie;
	}

	public String getIsShow() {
		return isShow;
	}

	public void setIsShow(String string) {
		this.isShow = string;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer order) {
		this.sort = order;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getUpdateUser() {
		return updateUser;
	}

	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}

	public Integer getReadNumber() {
		return readNumber;
	}

	public void setReadNumber(Integer readNumber) {
		this.readNumber = readNumber;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "TbNews{" +
			", id=" + id +
			", typeId=" + typeId +
			", navId=" + navId +
			", title=" + title +
			", keyWords=" + keyWords +
			", coverImg=" + coverImg +
			", isShow=" + isShow +
			", sort=" + sort +
			", content=" + content +
			", createTime=" + createTime +
			", createUser=" + createUser +
			", updateTime=" + updateTime +
			", updateUser=" + updateUser +
			", readNumber=" + readNumber +
			"}";
	}
}
